package fr.emse.tatiana.replayable;

import java.util.List;

import org.eclipse.core.resources.IFile;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IPersistableElement;
import fr.emse.tatiana.display.BadDisplayFile;
import fr.emse.tatiana.replayable.analysis.IAnalysis;

public class VisualisationReplayableInput implements IReplayableInput {

	private IFile file;
	private IReplayableInput delegate;
	
	public VisualisationReplayableInput(IFile file, IReplayableInput input) {
		this.file = file;
		this.delegate = input;
	}
	
	public void init() throws BadDisplayFile {
		delegate.init();
	}
	
	public IReplayableModel getDisplayModel(List<IAnalysis> analyses) {
		return delegate.getDisplayModel(analyses);
	}

	public boolean exists() {
		return file.exists();
	}

	public ImageDescriptor getImageDescriptor() {
		return null;
	}

	public String getName() {
		return delegate.getName();
	}

	public IPersistableElement getPersistable() {
		return null;
	}

	public String getToolTipText() {
		return delegate.getToolTipText();
	}

	public Object getAdapter(Class adapter) {
		return delegate.getAdapter(adapter);
	}

	public IFile getFile() {
		return file;
	}
	
}
